package com.ctsi.oauth.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Auther: zhangjw
 * @Date: 2018/7/25 16:14
 * @Description:
 */
@ConfigurationProperties(prefix = "cloud.security.oauth2")
public class TokenStoreProperties {

    /**
     * 使用jwt时为token签名的秘钥
     */
    private String jwtSigningKey = "csticloud";

    /**
     * tokenStore 默认redis 可选(redis or jwt)
     */
    private String tokenStore = "redis";


    public TokenStoreProperties() {
    }

    public String getJwtSigningKey() {
        return jwtSigningKey;
    }

    public void setJwtSigningKey(String jwtSigningKey) {
        this.jwtSigningKey = jwtSigningKey;
    }

    public String getTokenStore() {
        return tokenStore;
    }

    public void setTokenStore(String tokenStore) {
        this.tokenStore = tokenStore;
    }

}
